package com.hzdl.bean;

//资源（房间）管理

public class Room {

  private int rid;
  private String rname;
  private int is_rent;
  private double size;
  private double rent_size;
  private String rent_term;
  private int pid;
  private double value;
  private long history_target;
  private long now_target;
  private int company;
  private String place;
    private String pname;

  public Room() {
  }

  public Room(String rname, double size, double rent_size,int pid) {
    this.rname = rname;
    this.size = size;
    this.rent_size = rent_size;
    this.pid=pid;
  }

    public Room(int rid, String rname, int is_rent, double size, double rent_size, String rent_term, int pid, double value, long history_target, long now_target, int company) {
        this.rid = rid;
        this.rname = rname;
        this.is_rent = is_rent;
        this.size = size;
        this.rent_size = rent_size;
        this.rent_term = rent_term;
        this.pid = pid;
        this.value = value;
        this.history_target = history_target;
        this.now_target = now_target;
        this.company = company;
    }

    public int getRid() {
    return rid;
  }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getvalue() {
        return value;
    }

    public void setvalue(double value) {
        this.value = value;
    }

    public long getHistory_target() {
        return history_target;
    }

    public void setHistory_target(long history_target) {
        this.history_target = history_target;
    }

    public long getNow_target() {
        return now_target;
    }

    public void setNow_target(long now_target) {
        this.now_target = now_target;
    }

    public int getCompany() {
        return company;
    }

    public void setCompany(int company) {
        this.company = company;
    }

    public void setRid(int rid) {
    this.rid = rid;
  }

  public String getRname() {
    return rname;
  }

  public void setRname(String rname) {
    this.rname = rname;
  }

  public int getIs_rent() {
    return is_rent;
  }

  public void setIs_rent(int is_rent) {
    this.is_rent = is_rent;
  }

  public double getSize() {
    return size;
  }

  public void setSize(double size) {
    this.size = size;
  }

  public double getRent_size() {
    return rent_size;
  }

  public void setRent_size(double rent_size) {
    this.rent_size = rent_size;
  }

  public String getRent_term() {
    return rent_term;
  }

  public void setRent_term(String rent_term) {
    this.rent_term = rent_term;
  }

  public int getPid() {
    return pid;
  }

  public void setPid(int pid) {
    this.pid = pid;
  }

    @Override
    public String toString() {
        return "Room{" +
                "rid=" + rid +
                ", rname='" + rname + '\'' +
                ", is_rent='" + is_rent + '\'' +
                ", size=" + size +
                ", rent_size=" + rent_size +
                ", rent_term='" + rent_term + '\'' +
                ", pid=" + pid +
                ", value=" + value +
                ", history_target=" + history_target +
                ", now_target=" + now_target +
                ", company=" + company +
                '}';
    }
}
